import api from './api'

class OperationLogApi extends api {
  getList ({
    condition,
    pageInfo
  }) {
    return this.getPaged({
      pageInfo,
      condition
    })
  }

  clear () {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}`,
      method: 'delete'
    })
  }
}

export default new OperationLogApi('operationLog')
